home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / GoodBye / JohnKennedy / February96.lha / TUT9.DOC < prev    next >
Encoding:
Text File  |  1996-08-01  |  5.6 KB  |  167 lines

  1.  
  2.  
  3. Imagine tutorial
  4.  
  5. Don't be in the dark:prepare to be illuminated with this
  6. look at Imagine's many light sources.
  7.  
  8.  
  9. Getting the lighting right is an important part of creating
  10. good images. This month we'll take a look at how the
  11. position and type of light sources can make the different
  12. between a good render, and one which looks extremely flat
  13. and unrealistic.
  14.  
  15.  
  16. Positioning Light Sources
  17.  
  18.  
  19. There must be at least one light source present in every
  20. scene before Imagine will even start rendering. For best
  21. results, you'll probably want at least two lights present.
  22. Imagine also has a special form of light source called
  23. "ambient lighting". This is a general light applied equally
  24. to all objects from all directions.
  25.  
  26. Space scenes are a little different, and you have to decided
  27. whether you want to go for realism (like Babylon5) or simply
  28. what looks best (like Star Trek TNG). Realism requires that
  29. you have a single light source -- usually the sun -- and no
  30. ambient lighting. Although closest to what a giant space
  31. ship floating in deep space would actually look like, this
  32. can be pretty dull looking as a lot of the objects will be
  33. in shadow and lacking detail. The creators of Babylon5 get
  34. around this by ensuring that their star backdrops contain
  35. lots of purple and blue nebula rather than simple darkness.
  36.  
  37. The ships in Star Trek all seem to manage to look perfectly
  38. lit from all directions, and some even are fitted with their
  39. own light sources to provide illumination. 
  40.  
  41. Back to slightly more practical examples, and there are
  42. generally accepted ways to position light sources for best
  43. effect. A simple scene, say a camera and one object,
  44. requires two light sources. The first is far away and this
  45. provides a "fill" light. The second light is placed close to
  46. the camera to provide the main illumination. You can see the
  47. effects of these lights in the follow illustrations. By the
  48. way, when using digitised backdrop images as shown here, you
  49. should try and arrange the lights so that they cast shadows
  50. in the same way as the sun does in the scanned image.
  51.  
  52.  
  53. im9_1.jpg
  54.  
  55. Here there is only one light source, and it's placed behind
  56. the object. Although dramatic, this is an effect you
  57. probably won't use very often...
  58.  
  59. im9_2.jpg
  60.  
  61. Here the single light source has been moved some distance
  62. away, high in the sky as though it were the sun. Notice how
  63. bland the landscape looks.
  64.  
  65. im9_3.jpg
  66.  
  67. Now the light has been brought next to the camera, and a
  68. second source placed in the distance to provide a "fill".
  69. The shadows have added depth to the landscape, and
  70. illuminate the detail on the cow object.
  71.  
  72. im9_4.jpg
  73.  
  74. Now ambient lighting has been turned on too: notice how the
  75. darker shadows are starting to appear grey. Too much ambient
  76. light and they'll start to appear washed out.
  77.  
  78.  
  79.  
  80.  
  81. Making invisible light beams visible
  82.  
  83. It's often desirable to make beams of light visible, so that
  84. the beam itself can be observed. This is quite an easy
  85. effect to achieve, and makes use of the "fog length" of an
  86. object.
  87.  
  88. Lets say for example you want to make a space ship emit a
  89. beam of light. (Obviously this is what is required to create
  90. a Class 3 tractor beam).
  91.  
  92. 1. In the detail editor, create an object which will be the
  93. beam of light. Create a cone or cylinder depending on what
  94. you want the finished beam to look like.
  95.  
  96. im9_5.iff
  97.  
  98. 2. Alter the colour of the beam to be white or some other
  99. very light tint. Now adjust the Fog Length. The value will
  100. vary, but try setting it to twice the width of the beam
  101. object to start with.
  102.  
  103. im9_6.iff
  104.  
  105. 3. Now in the Stage Editor create the light source and position
  106. the beam where you want it. I've added a few other objects
  107. here.
  108.  
  109. im9_7.iff
  110.  
  111. 4. Render the scene in scanline or trace modes. Here we have
  112. one possible solution to the BSE problem: selling cattle to
  113. alien invaders for their own bizarre breeding experiments.
  114.  
  115. im9_8.jpg
  116.  
  117.  
  118.  
  119.  
  120. Different type of Light sources
  121.  
  122. Imagine 3 introduced the idea of having light sources which
  123. are not necessarily point sources which are spherical i.e.
  124. sending out light in all directions. It's now possible to
  125. control the direction the light travels, and also define the
  126. light beam as either round or rectangular.
  127.  
  128. There is now other types of light source: a source which
  129. emits parellel rays. Parallel rays are like those from the
  130. sun, and illuminate all objects equally. To select the type
  131. of light source you'll need to create a normal light and
  132. then go to the Action editor and look at the object's
  133. "Actor" line.
  134.  
  135. im9_9.iff
  136.  
  137. When you create light sources with either round or
  138. rectangular settings and use the Display menu to switch on
  139. the "Light Lines" option you'll see which direction the
  140. lights are pointing. There are no lines drawn for the
  141. default spherical light source because the light is pointing
  142. at all directions at once.
  143.  
  144.  
  145. Normal light source: im9_10.jpg
  146. Round light source: im9_11.jpg
  147. Rectangular light source: im9_12.jpg
  148.  
  149. You can combine the light beams with foggy objects as
  150. before, to create rather cool searchlight effects. You'll
  151. need to match the shape of the light beam objects to suit
  152. the light source.
  153.  
  154. In the real world, lights cast shadows and Imagine will do
  155. this too. You can switch shadows on and off from the Action
  156. editor Actor requestor as before. With the shadows turned
  157. on, rendering times are increased dramatically so only use
  158. them when strictly necessary, and only use shadows with the
  159. light sources which required them -- not all of them. This
  160. last image features a round light source with shadows
  161. switched on. There is a fill light in the distance, and
  162. ambient lighting is also turned on. The image is 320 by 256
  163. pixels and took X minutes to render in scanline mode on an
  164. 68040 based A4000.
  165.  
  166.  
  167. -- end ---